package com.gljx.web.dao;

import com.gljx.web.Entity.CarRefuel;
import com.gljx.web.Entity.CarRefuelEntry;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface CarRefuelMapper {
    int deleteByPrimaryKey(String fid);

    int insert(CarRefuel record);

    int insertSelective(CarRefuel record);

    CarRefuel selectByPrimaryKey(String fid);

    int updateByPrimaryKeySelective(CarRefuel record);

    int updateByPrimaryKey(CarRefuel record);

    String selectFnumber(String companyId);

    CarRefuel selCarRefuelByFid(String fid);

    public List<CarRefuel> selectCarRefuel(@Param("companyId")String companyId,@Param("fnumber") String fnumber, @Param("fdescription")String fdescription,
                                           @Param("carNumber")String carNumber, @Param("beginTime")String beginTime, @Param("endTime")String endTime);

    /**
     * 查询时间是否生成
     * @param dates
     * @return
     */
    List<String> selectCarRefuelByDate(@Param("dates")String dates,@Param("companyId")String companyId);

    /**
     *
     * @param dates
     * @param cfcarnoid
     * @param companyId
     * @return
     */
    List<String> selectCarRefuelEntry(@Param("dates")String dates,@Param("cfcarnoid") String cfcarnoid,@Param("companyId")String companyId);
}